<?php

namespace Modules\Shop\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ArticleRequest extends FormRequest
{
    //验证规则
    public function rules()
    {
        return [
        	'title' =>'required',
        	'category_id' =>'required',
        	'author' =>'required',
        	'content' =>'required',
        	'thumb' =>'required',
//            'jiehsao' =>'required',
		];
    }

    //错误信息处理
    public function messages()
    {
        return array (
);
    }

    //权限验证
    public function authorize()
    {
        return true;
    }
}
